package com.kgc.novel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.*;

/**
 * @author Wang乐俊.
 * @date 2023/5/9 0009 15:35
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("book_advice")
@Api(tags = "通知公告类")
public class BookAdvice implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 公告id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 标题
     */
    @ApiParam("标题")
    @TableField("title")
    private String title;
    /**
     * 内容
     */
    @ApiParam("内容")
    @TableField("content")
    private String content;
    /**
     * 创建时间
     */
    @ApiParam("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Data create_time;
    /**
     * 0：待发布 1：已发布
     */
    @ApiParam("发布状态")
    @TableField("status")
    private String status;


}
